<?php
/**
 * Created by PhpStorm.
 * User: zrc
 * Date: 2018/3/26
 * Time: 10:24
 */


namespace App\Http\Controllers\Coin;

use App\Http\Controllers\Controller;

use Illuminate\Http\Request;
use App\Models\Slide;
use App\Models\System;

class IndexController extends Controller
{
    public function coin_index()
    {
        $list = array();

        $list['data'] = Slide::where('del', 1)->orderBy('order', 'asc')->get()->toArray();
        
        $list['title'] = System::first()->title;

        return response()->json(['status' => 1, 'msg' => '成功', 'list' => $list]);
    }
}
